import request from '@/utils/request'

export function getUserInfo() {
    return request({
        url: '/info/user/user',
        method: 'get',
    })
}

export function execUpdate(newInfo) {
    return request({
        url: '/info/user/update',
        method: 'post',
        data: newInfo
    })
}

export function getReleaseInfo() {
    return request({
        url: '/info/user/release',
        method: 'get',
    })
}

export function getSellerTrading() {
    return request({
        url: '/info/user/sell',
        method: 'get',
    })
}

export function getBuyerTrading() {
    return request({
        url: '/info/user/buy',
        method: 'get',
    })
}